require 'dm-core'

require './quote.rb'
require './settings.rb'

DataMapper.setup(:default, Settings.get_dbconnection_string )
DataMapper.finalize

line = '2/7/2011           03:30:08 PM    131500	1	-	'

s_quotes = Array.new()
(0..10000).each do |i|
  s_line = ''
  s_line << line
  s_quotes.push Quote.new(s_line)
end

s_quotes.each do |quote|
  quote.save
end

puts 'end'